import os,sys
import yaml

def BlankLineFLiter(line):
    if line.strip():
        print(line)



def SQLFilter(fi):

    data = yaml.load(open('config.yaml', 'r'))

    projectName = data['projectName']

    base_dir = os.path.abspath(os.path.dirname(sys.argv[0]))
    path = base_dir + '/sqlScript/' + projectName
    if os.path.splitext(fi)[1] == '.sql':
        file = os.path.join(path, fi)